{% extends "xadmin/widgets/base.html" %}
{% load i18n xadmin_tags %}

{% block title %}
  <a href="{{page_url}}" class="pull-right"><span class="badge badge-info">{{ result_count }}</span></a>
  {{ block.super }}
{% endblock title %}

{% block box_content_class %}{% if results %}nopadding x-scroll{% endif %}{% endblock box_content_class %}

{% block content %}
{% if results %}
<div class="container">
 {% for item in results %}
 <hr class="featurette-divider">
   <div class="row">
            <div class="col-sd-3 col-md-3 ">
                <a href="#">
                    <img class="img-responsive" src="/{{item.object.photo}}" alt="">
                </a>
            </div>
            <div class="col-sd-7 col-md-8">
                <h3>{{item.object.name}}</h3>
                <h4>可容纳 {{item.object.renshu}} 人</h4>
                <p>{{item.object.brief}}</p>
                {% if item.object.status == 0%}
                <a class="btn btn-primary" href="/xadmin/yudingapp/yulan_yuding/add/?ydRoom={{item.object.id}}">可预定 <span class="glyphicon glyphicon-chevron-right"></span></a>
               {% endif %}
            </div>
          </div>


{% endfor %}  
 <hr class="featurette-divider">    
</div>

{% else %}
  <span class="text-muted">{% trans "Empty list" %}</span>
{% endif %}
{% endblock content %}